Page({
  data: {
    labels: [{
        id: 0,
        img: '/images/doctor.png',
        title: '找医生'
      },
      {
        id: 1,
        img: '/images/baike.png',
        title: '查疾病'
      },
    ],
    news: [{
        id: 0,
        thumb: '/images/doctor.png',
        title: '秃顶为什么没有被自然淘汰？',
        content: '一个性状是否会被自然选择淘汰，不止是是是是是是是所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所'
      },
      {
        id: 1,
        thumb: '/images/doctor.png',
        title: '隐形正畸的危害？30岁再进行正畸还来得及吗？',
        content: '一个性状是否会被自然选择淘汰，不止是是是是是是是所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所'
      },
      {
        id: 2,
        thumb: '/images/doctor.png',
        title: '秃顶为什么没有被自然淘汰？',
        content: '一个性状是否会被自然选择淘汰，不止是是是是是是是所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所所'
      },
    ]
  },

  onload() {

  },

  onLabel(e) {
    console.log(e)
    const id = e.currentTarget.dataset.id
    // if (id === 1) {
      wx.navigateTo({ url: '/pages/diseases/diseases' });
    // }
  },

  onBtn(e) {
    wx.navigateTo({ url: '/pages/question/question' });
  }
})